package com.socialrss.accounts;

import java.util.ArrayList;


import com.socialrss.constants.SocialNetworkNames.SocialNetKeys;



/*
* author : Sefa Sahin Koc
*/
public class FollowedPerson extends AbstractHolder{
	 private SocialNetKeys conntype = null;
	 private String userid;
	 private ArrayList<AbstractNotification> notificationList;
	  
	 public FollowedPerson(int id,String name, SocialNetKeys social_net, int sel, String userid) {
		 super(id);
		 super.setName(name);
		 this.conntype = social_net;
		 if(sel == 1)
			 super.setTurnedOn(true);
		 else
			 super.setTurnedOn(false);
		 this.userid = userid;
		 
		 notificationList = new ArrayList<AbstractNotification>();
	 }
	 public void addNewNotification(InstagramNotification insNot){
		 notificationList.add(insNot);
	 }
	 @Override
	 public SocialNetKeys getConntype() {
		 return conntype;
	 }
	 public void setConntype(SocialNetKeys ct) {
		 this.conntype = ct;
	 }
	 public String getUserid(){
		 return userid;
	 }
	 public void setUserid(String userid){
		 this.userid = userid;
	 }
	 public ArrayList<AbstractNotification> getNotificationList(){
		 return notificationList;
	 }
}
